﻿using MengLin.OOP.DesignPattern.Adapter.ServiceCanUsed.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Adapter.ServiceCanUsed.Implements
{
    public class MySqlHelper : IDBHelper
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <typeparam name="T"></typeparam>
        public void Add<T>()
        {
            Console.WriteLine($"{nameof(MySqlHelper)} Add");
        }

        /// <summary>
        /// 更新
        /// </summary>
        /// <typeparam name="T"></typeparam>
        public void Update<T>()
        {
            Console.WriteLine($"{nameof(MySqlHelper)} Update");
        }

        /// <summary>
        /// 删除
        /// </summary>
        /// <typeparam name="T"></typeparam>
        public void Delete<T>()
        {
            Console.WriteLine($"{nameof(MySqlHelper)} Delete");
        }

        /// <summary>
        /// 查询
        /// </summary>
        /// <typeparam name="T"></typeparam>
        public void Query<T>()
        {
            Console.WriteLine($"{nameof(MySqlHelper)} Query");
        }
    }
}
